import { Badge } from "@mantine/core";

export default function StatusRenderer({ status }) {
  switch (status) {
    case "PENDING":
      return (
        <Badge variant="light" color="dark.2" size="sm">
          等待审批
        </Badge>
      );
    case "APPROVED":
      return (
        <Badge color="teal.5" size="sm">
          已通过
        </Badge>
      );
    case "REJECTED":
      return (
        <Badge color="red.7" size="sm">
          已驳回
        </Badge>
      );

    default:
      return null;
  }
}
